package com.example.mybatisplusdemo.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.example.mybatisplusdemo.domain.po.User;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository // 代表持久层
public interface UserMapper extends BaseMapper<User> {

    // 自定义sql
    void updateAge(@Param(Constants.WRAPPER) LambdaQueryWrapper<User> lambdaQueryWrapper, @Param("age") int i);
}

